import Layout from '@/views/layout/Layout'

const payAdminRouter = {
    path: "/payCenter",
    component: Layout,
    redirect: "/payCenter/payCenter",
    name: "payCenter",
    alwaysShow: true,
    meta: {
      title: "支付中心",
      icon: "pinggusi",
      roles: 'pay_center'
    },
    children : [
      {
        path: "/payCenter/bankAdmin",
        component: () => import("@/views/payCenter/bankAdmin/bankAdmin"),
        name: "bankAdmin",
        meta: {
          title: "银行管理",
          roles:'pay_center_bank_mgr',
        }
      },
      {
        path: "/payCenter/payApply",
        component: () => import("@/views/payCenter/payApply/payApply"),
        name: "payApply",
        meta: {
          title: "支付应用",
          roles:'pay-center-app-mgr',
        }
      },
      {
        path: "/payCenter/payApplyChannel",
        component: () => import("@/views/payCenter/payApplyChannel/payApplyChannel"),
        name: "payApplyChannel",
        meta: {
          title: "应用渠道",
          roles:'pay-center-app-channel-mgr',
        }
      },
      {
        path: "/payCenter/drawMoney",
        component: () => import("@/views/payCenter/drawMoney/drawMoney"),
        name: "drawMoney",
        meta: {
          title: "提现管理",
          roles:'pay_center_admin_withdraw_mgr',
        }
      },
      {
        path: "/payCenter/drawDetails",
        component: () => import("@/views/payCenter/drawDetails/drawDetails"),
        name: "drawDetails",
        hidden:true,
        meta: {
          title: "提现详情",
          roles:'pay_center_admin_withdraw_mgr',
        }
      },
    ]
}
export default payAdminRouter
